package com.cyy.content.api;

import com.cyy.content.model.dto.CourseCategoryTreeDto;
import com.cyy.content.service.CourseCategoryService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author cyy
 * @date 2025/1/19
 * @description CourseCategoryController 课程分类接口
 */
@RestController
@Api(value = "课程分类编辑接口",tags = "课程分类编辑接口")
public class CourseCategoryController {
    @Autowired
    private CourseCategoryService courseCategoryService;

    @GetMapping("/course-category/tree-nodes")
    public List<CourseCategoryTreeDto> queryTreeNodes(){
        return courseCategoryService.queryTreeNodes("1");
    }
}
